<!DOCTYPE html PUBLICModel "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
	<meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
	<title>Document</title>
	<css file="__PUBLIC__/Css/style.css"/>
</head>
<body>
<section class="widget" style="min-height:300px">
		<header>
			<span class="icon"></span>
			<hgroup>
				<h1>属性列表</h1>
				<h2><a href="{:U(GROUP_NAME.'/Attr/attr')}" target="iframe">添加一个新的属性</a></h2>
			</hgroup>
		</header>
		<table id="myTable" border="0" width="100">
				<thead>
					<tr>
						<th class="header" >ID</th>
						<th class="header">属性名称</th>
						<th class="header">属性颜色</th>
						<th class="header">操作</th>
					</tr>
				</thead>
				<tbody>
				<foreach name="attr" item="v">
					<tr class="odd">
						<td style="padding-left:50px;">{$v.id}</td>
						<td>{$v.name}</td>
						<td><span style="display:inline-block;width:40px;height: 20px;background:{$v.color};"></span></td>
						<td>[<a href="{:U(GROUP_NAME.'/Attr/DelAttr',array('id'=>$v['id']))}">删除</a>]</td>
					</tr>
					</foreach>
				</tbody>
		</table>
	</section>

	
</body>
</html>